home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Utilities
/
Scanner
/
Scan.0.91
/
Source
/
pack
< prev
next >
Wrap
Text File
|
1996-02-03
|
549b
|
28 lines
#!/usr/local/bin/perl
if ($ARGC < 2) { die "Usage: pack <name> <version>\n"; }
$appName = $ARGV[0];
$version = $ARGV[1];
chdir( pkg );
system("rm -rf $appName.app");
system("cp -pr ~/Apps/$appName.app ./");
chdir( .. );
system("/NextAdmin/Installer.app/package pkg $appName.info");
system("mv $appName.pkg pkg/");
chdir( pkg );
system("cp ../README ./");
system("mkdir $appName");
system("mv $appName.pkg $appName/");
system("mv README $appName/");
system("tar cvof $appName.$version.nihs.tar");
system("gzip $appName.$version.nihs.tar");